package com.mall.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class OrderDetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderDetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrder_details_idIsNull() {
            addCriterion("order_details_id is null");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idIsNotNull() {
            addCriterion("order_details_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idEqualTo(String value) {
            addCriterion("order_details_id =", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idNotEqualTo(String value) {
            addCriterion("order_details_id <>", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idGreaterThan(String value) {
            addCriterion("order_details_id >", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idGreaterThanOrEqualTo(String value) {
            addCriterion("order_details_id >=", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idLessThan(String value) {
            addCriterion("order_details_id <", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idLessThanOrEqualTo(String value) {
            addCriterion("order_details_id <=", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idLike(String value) {
            addCriterion("order_details_id like", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idNotLike(String value) {
            addCriterion("order_details_id not like", value, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idIn(List<String> values) {
            addCriterion("order_details_id in", values, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idNotIn(List<String> values) {
            addCriterion("order_details_id not in", values, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idBetween(String value1, String value2) {
            addCriterion("order_details_id between", value1, value2, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andOrder_details_idNotBetween(String value1, String value2) {
            addCriterion("order_details_id not between", value1, value2, "order_details_id");
            return (Criteria) this;
        }

        public Criteria andItem_idIsNull() {
            addCriterion("item_id is null");
            return (Criteria) this;
        }

        public Criteria andItem_idIsNotNull() {
            addCriterion("item_id is not null");
            return (Criteria) this;
        }

        public Criteria andItem_idEqualTo(Integer value) {
            addCriterion("item_id =", value, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idNotEqualTo(Integer value) {
            addCriterion("item_id <>", value, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idGreaterThan(Integer value) {
            addCriterion("item_id >", value, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("item_id >=", value, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idLessThan(Integer value) {
            addCriterion("item_id <", value, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idLessThanOrEqualTo(Integer value) {
            addCriterion("item_id <=", value, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idIn(List<Integer> values) {
            addCriterion("item_id in", values, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idNotIn(List<Integer> values) {
            addCriterion("item_id not in", values, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idBetween(Integer value1, Integer value2) {
            addCriterion("item_id between", value1, value2, "item_id");
            return (Criteria) this;
        }

        public Criteria andItem_idNotBetween(Integer value1, Integer value2) {
            addCriterion("item_id not between", value1, value2, "item_id");
            return (Criteria) this;
        }

        public Criteria andOrder_codeIsNull() {
            addCriterion("order_code is null");
            return (Criteria) this;
        }

        public Criteria andOrder_codeIsNotNull() {
            addCriterion("order_code is not null");
            return (Criteria) this;
        }

        public Criteria andOrder_codeEqualTo(String value) {
            addCriterion("order_code =", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotEqualTo(String value) {
            addCriterion("order_code <>", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeGreaterThan(String value) {
            addCriterion("order_code >", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeGreaterThanOrEqualTo(String value) {
            addCriterion("order_code >=", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeLessThan(String value) {
            addCriterion("order_code <", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeLessThanOrEqualTo(String value) {
            addCriterion("order_code <=", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeLike(String value) {
            addCriterion("order_code like", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotLike(String value) {
            addCriterion("order_code not like", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeIn(List<String> values) {
            addCriterion("order_code in", values, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotIn(List<String> values) {
            addCriterion("order_code not in", values, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeBetween(String value1, String value2) {
            addCriterion("order_code between", value1, value2, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotBetween(String value1, String value2) {
            addCriterion("order_code not between", value1, value2, "order_code");
            return (Criteria) this;
        }

        public Criteria andItem_numIsNull() {
            addCriterion("item_num is null");
            return (Criteria) this;
        }

        public Criteria andItem_numIsNotNull() {
            addCriterion("item_num is not null");
            return (Criteria) this;
        }

        public Criteria andItem_numEqualTo(Integer value) {
            addCriterion("item_num =", value, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numNotEqualTo(Integer value) {
            addCriterion("item_num <>", value, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numGreaterThan(Integer value) {
            addCriterion("item_num >", value, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numGreaterThanOrEqualTo(Integer value) {
            addCriterion("item_num >=", value, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numLessThan(Integer value) {
            addCriterion("item_num <", value, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numLessThanOrEqualTo(Integer value) {
            addCriterion("item_num <=", value, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numIn(List<Integer> values) {
            addCriterion("item_num in", values, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numNotIn(List<Integer> values) {
            addCriterion("item_num not in", values, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numBetween(Integer value1, Integer value2) {
            addCriterion("item_num between", value1, value2, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_numNotBetween(Integer value1, Integer value2) {
            addCriterion("item_num not between", value1, value2, "item_num");
            return (Criteria) this;
        }

        public Criteria andItem_titleIsNull() {
            addCriterion("item_title is null");
            return (Criteria) this;
        }

        public Criteria andItem_titleIsNotNull() {
            addCriterion("item_title is not null");
            return (Criteria) this;
        }

        public Criteria andItem_titleEqualTo(String value) {
            addCriterion("item_title =", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleNotEqualTo(String value) {
            addCriterion("item_title <>", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleGreaterThan(String value) {
            addCriterion("item_title >", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleGreaterThanOrEqualTo(String value) {
            addCriterion("item_title >=", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleLessThan(String value) {
            addCriterion("item_title <", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleLessThanOrEqualTo(String value) {
            addCriterion("item_title <=", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleLike(String value) {
            addCriterion("item_title like", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleNotLike(String value) {
            addCriterion("item_title not like", value, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleIn(List<String> values) {
            addCriterion("item_title in", values, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleNotIn(List<String> values) {
            addCriterion("item_title not in", values, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleBetween(String value1, String value2) {
            addCriterion("item_title between", value1, value2, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_titleNotBetween(String value1, String value2) {
            addCriterion("item_title not between", value1, value2, "item_title");
            return (Criteria) this;
        }

        public Criteria andItem_priceIsNull() {
            addCriterion("item_price is null");
            return (Criteria) this;
        }

        public Criteria andItem_priceIsNotNull() {
            addCriterion("item_price is not null");
            return (Criteria) this;
        }

        public Criteria andItem_priceEqualTo(BigDecimal value) {
            addCriterion("item_price =", value, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceNotEqualTo(BigDecimal value) {
            addCriterion("item_price <>", value, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceGreaterThan(BigDecimal value) {
            addCriterion("item_price >", value, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("item_price >=", value, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceLessThan(BigDecimal value) {
            addCriterion("item_price <", value, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("item_price <=", value, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceIn(List<BigDecimal> values) {
            addCriterion("item_price in", values, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceNotIn(List<BigDecimal> values) {
            addCriterion("item_price not in", values, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("item_price between", value1, value2, "item_price");
            return (Criteria) this;
        }

        public Criteria andItem_priceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("item_price not between", value1, value2, "item_price");
            return (Criteria) this;
        }

        public Criteria andTotalIsNull() {
            addCriterion("total is null");
            return (Criteria) this;
        }

        public Criteria andTotalIsNotNull() {
            addCriterion("total is not null");
            return (Criteria) this;
        }

        public Criteria andTotalEqualTo(BigDecimal value) {
            addCriterion("total =", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotEqualTo(BigDecimal value) {
            addCriterion("total <>", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalGreaterThan(BigDecimal value) {
            addCriterion("total >", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total >=", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalLessThan(BigDecimal value) {
            addCriterion("total <", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total <=", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalIn(List<BigDecimal> values) {
            addCriterion("total in", values, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotIn(List<BigDecimal> values) {
            addCriterion("total not in", values, "total");
            return (Criteria) this;
        }

        public Criteria andTotalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total between", value1, value2, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total not between", value1, value2, "total");
            return (Criteria) this;
        }

        public Criteria andItem_imageIsNull() {
            addCriterion("item_image is null");
            return (Criteria) this;
        }

        public Criteria andItem_imageIsNotNull() {
            addCriterion("item_image is not null");
            return (Criteria) this;
        }

        public Criteria andItem_imageEqualTo(String value) {
            addCriterion("item_image =", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageNotEqualTo(String value) {
            addCriterion("item_image <>", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageGreaterThan(String value) {
            addCriterion("item_image >", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageGreaterThanOrEqualTo(String value) {
            addCriterion("item_image >=", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageLessThan(String value) {
            addCriterion("item_image <", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageLessThanOrEqualTo(String value) {
            addCriterion("item_image <=", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageLike(String value) {
            addCriterion("item_image like", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageNotLike(String value) {
            addCriterion("item_image not like", value, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageIn(List<String> values) {
            addCriterion("item_image in", values, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageNotIn(List<String> values) {
            addCriterion("item_image not in", values, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageBetween(String value1, String value2) {
            addCriterion("item_image between", value1, value2, "item_image");
            return (Criteria) this;
        }

        public Criteria andItem_imageNotBetween(String value1, String value2) {
            addCriterion("item_image not between", value1, value2, "item_image");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}